home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #1 / Amiga Plus CD - 2000 - No. 1.iso / Games / Oldies / Haktar / MyRoom / LoveMice.doc < prev    next >
Encoding:
Text File  |  1999-12-03  |  6.6 KB  |  174 lines

  1. Mice in Love V1.0
  2. (C) by Guido Wegener 2.2.1990
  3.        Eisenacher Str. 2
  4.        5300 Bonn 1
  5.        West Germany
  6.  
  7. This program is Freeware and may be copied as long as this .doc-file is
  8. included and no profit is made by distribution.
  9. You may use parts of this program if you mention the author.
  10.  
  11. LoveMice is the short form of Mice In Love, but isn't much shorter.
  12. So much for the name, now let's look at the program !
  13. The idea is from Scientific American (Spektrum der Wissenschaft).
  14. There are a number n of mice sitting in equal distance on a circle.
  15. (I just want to give an example, don't try it with real mice, but if
  16. you do, please send me some photos of your experiments.)
  17. All of these mice are gay and every mouse loves it's neighbour in a way
  18. that every mouse k loves the mouse k+1, mouse n-1 loves mouse 0 (we
  19. little computer people count different than humans, you see).
  20. The room with the mice is very dark and they can't smell each other.
  21. From time to time the lights go on. At this moment every mouse looks
  22. for the one it loves and the computer draws a line in the direction in
  23. which the mouse looks. When the lights go off again, every mouse runs
  24. in the direction of it's mate with a speed relative to the distance.
  25. That causes the mice to run in a very cute pattern until all of them
  26. meet in the center and ... (remember, they are gay !).
  27.  
  28. This is what the computer does :
  29.  It draws some points on a circle and moves them a fix fraction of the
  30. distance to the next point and draws the connecting line between them
  31. in the color of the first point of the two.
  32.  
  33. This is what the computer wants to know :
  34.  a) the part of the distance each mouse moves each time
  35.     (distance/x where x is an integer number you give the computer)
  36.     you should use values between 2 (calculated as 1/2) and 100 (=1/100)
  37.  b) the number of mice
  38.     you can use numbers between 2 and about 32 (I don't know, I wrote the
  39.     program long ago)
  40.  c) the way the mice are connected
  41.     That is difficult to say, let's try it this way :
  42.     The mice are numbered from 0 to n-1.
  43.     The start positions are also numbered from 0 to n-1 in the way the
  44.     numbers on a watch are numbered (you know, analog watches !).
  45.     You start with mice 0 => so the first number is 0.
  46.     Then you think about at which position of the mouse it loves and
  47.     tell the computer about the start number.
  48.     Go on like that until you have got a row of n numbers where every number
  49.     from 0 to n-1 is used once.
  50.     An example :
  51.     You want 7 mice and each mouse should love the next but one (<- my
  52.     dictionary told my to say it that way but I mean "übernächst").
  53.     The mice are sitting this way :
  54.                  0
  55.               6     1
  56.                      
  57.              5       2
  58.                      
  59.                4   3
  60.     0 loves 2,2 loves 4,4 loves 6,6 loves 1,1 loves 3,3 loves 5 
  61.     and 5 loves 0.
  62.     How the computer wants to hear it :
  63.     0,2,4,6,1,3,5
  64.     (Just list the positions of the mice in the order in which they love
  65.     each other.)
  66.     Isn't it easy ?
  67.  d) the colors in which the lines between the mice should be drawn
  68.     Just list the R,G,B values of the color of each mouse from 0 to n-1.
  69.     Thar means that every mouse needs a color consisting of 3 values from
  70.     0 to 15 describing the intensity of red, green and blue.
  71.     That will lead to n*3 numbers.
  72.  
  73. This is how to tell it the computer :
  74.  Make a text (ASCII) file with all the values we talked about before in
  75. that order.
  76. Use some not numerical characters between the numbers.
  77. An example :
  78.  TUBEWINGS (<- the name doesn't matter)
  79.  data for Mice In Love by Guido Wegener of CLUSTER (<- that doesn't matter,
  80.   too, but I like it)
  81.  15 (<- that means 1/15 and is the fraction of the distance each mouse moves)
  82.  8 (<- number of mice)
  83.  0,4,2,6,7,3,5,1 (<- the way in which the mice are connected, in this case :
  84.   mice 0 loves mice 4,4 loves 2,2 loves 6 ...)
  85.  2,11,10 (<- color of mouse 0 (Red=2,Green=11,Blue=10))
  86.  6,9,15  (<- color for next mouse)
  87.  8,15,15 (<- and again a color)
  88.  8,11,14 (<- is this boring)
  89.  8,11,14 (<- stupid)
  90.  8,15,15 (<- stupid cupid)
  91.  6,9,15  (<- a color)
  92.  2,11,10 (<- color of mouse at position n-1)
  93.  end of this file
  94. The number used in the parentheses are illegal and would cause the computer
  95. to smoke and smell bad, so don't use any numbers except the ones the computer
  96. wants !
  97. Save this file anywhere (not to NIL: or PRT:).
  98. Then call LoveMice from the CLI whith one parameter which is the path from
  99. the current directory to the ASCII file.
  100.  
  101. This is what to do if it doesn't work :
  102.  Get lost !
  103.  
  104. This is how to use the demo-patterns :
  105.  There should be some files (x,uhu,triangel,fighter,...) somewhere on this
  106. disk. They could be in the same directory as this file or in a subdirectory
  107. called something like 'Mice'.
  108. For example :
  109.  lovemice mice/tubewings
  110.    will call Mice In Love an draw the pattern tubewings in the directory
  111.    mice
  112. Exit (why should you do that) by clicking the close gadget.
  113.  
  114. Don't be angry if you find some errors in this .doc file, I am running
  115. MandelMountains from Fish 295 in the background and it slows down the
  116. computer quite a bit and I am typing so fast.
  117.  
  118. ISN'T THIS PROGRAM USELESS ?    :-)
  119. . .  _ _
  120.  ª    ð
  121.  
  122. If you can read this, we (CLUSTER (=CLUb of the maSTERs)) 
  123. managed to release some of our products, so let's party !
  124.   __
  125.  |  |
  126.   \/
  127.  
  128.   |
  129.   | |
  130.     |
  131.   
  132.   ____
  133.   \  /
  134.   |  |
  135.   |  |
  136.  /    \
  137. |      |
  138. |______|
  139. |      |
  140. |champ-|
  141. | agne |
  142. |------|
  143. -­­­­­­- 
  144.  
  145. Bye buy, stay loony =-) and help the PD-scene :>  .
  146. (And use crazy chars like ­×x±æßð£å°©®þ¤µ¡ø¶»«·¾½¼°³@¹)
  147.  
  148. CLUSTER is a legal programming formation mainly working on Amiga, coding
  149. Freeware (and perhaps some commercial programs later).
  150. CLUSTER was founded on January 1989 with the following members:
  151. André Wichmann, Guido Wegener, Martin Rosenkranz, Martin Baumann, Philipp
  152. Witkop, Stefan Kaspari, Stefan Lietzow and Giang Nguyen.
  153. Then we reduced our members to the best and got a new programmer.
  154. Now, on 20.3.1990, we have the following members:
  155. André Wichmann          Coding
  156. Guido Wegener           Coding
  157. Martin Mohr             Coding
  158. Martin Rosenkranz       Graphics
  159. Philipp Witkop          Digitizing
  160. If you want to contact any member of CLUSTER (legal !!!) then write to
  161. our address:
  162.              André Wichmann
  163.              Posener Weg 4
  164.              5300 Bonn 1
  165.              West Germany
  166. André will give the letter to the addressed member.
  167.  
  168. Send errors, corrections, supporting ideas, criticism, enthusiastic fan-
  169. letters and money to the author:       Guido Wegener
  170.                                        Eisenacher Str. 2
  171.                                        5300 Bonn 1
  172.                                        West Germany
  173.  
  174.